package com.igeekhome.ccs.mapper;

import com.igeekhome.ccs.entity.CustomerField;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CustomerFieldMapper {
//👇张煜涵---------------------------------------------------------------------
    //拿到所有客户字段对象
    List<CustomerField> query();

    //添加字段
    void createCf(CustomerField customerField);

    //删除字段
    void deleteCf(int fieldId);

    //编辑字段
    void updateCf(@Param("fieldId")int fieldId, @Param("fieldName")String fieldName, @Param("mustOrNot")boolean mustOrNot, @Param("fieldType")String fieldType);
//👆张煜涵---------------------------------------------------------------------
}
